package com.entmanage.base.memo.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.entmanage.common.annotation.Excel;
import com.entmanage.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 备忘录提醒对象 memo_reminder
 *
 * @author lsq
 * @date 2025-09-04
 */
@ApiModel(value = "MemoReminder", description = "备忘录提醒对象")
public class MemoReminder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "主键")
    private Long id;

    /** 创建人用户ID（用于数据权限） */
    @Excel(name = "创建人用户ID", readConverterExp = "用=于数据权限")
    @ApiModelProperty(value = "创建人用户ID（用于数据权限）")
    private Long userId;

    /** 创建人部门ID（用于数据权限） */
    @Excel(name = "创建人部门ID", readConverterExp = "用=于数据权限")
    @ApiModelProperty(value = "创建人部门ID（用于数据权限）")
    private Long deptId;

    /** 备忘标题 */
    @Excel(name = "备忘标题")
    @ApiModelProperty(value = "备忘标题")
    private String title;

    /** 备忘内容 */
    @Excel(name = "备忘内容")
    @ApiModelProperty(value = "备忘内容")
    private String content;

    /** 备忘类型，如：todo, birthday, meeting */
    @Excel(name = "备忘类型，如：todo, birthday, meeting")
    @ApiModelProperty(value = "备忘类型，如：todo, birthday, meeting")
    private String memoType;

    /** 提醒的精确时间（用于定时任务触发） */
    @Excel(name = "提醒的精确时间", readConverterExp = "用=于定时任务触发")
    @ApiModelProperty(value = "提醒的精确时间（用于定时任务触发）")
    private Date remindTime;

    /** 提醒人邮箱 */
    @Excel(name = "提醒人邮箱")
    @ApiModelProperty(value = "提醒人邮箱")
    private String remindEmail;

    /**接收前端传来的邮箱列表（不存数据库，仅用于传输）*/
    private List<String> remindEmails;

    /** 提前几天提醒（0表示当天） */
    @Excel(name = "提前几天提醒", readConverterExp = "0=表示当天")
    @ApiModelProperty(value = "提前几天提醒（0表示当天）")
    private Long advanceDays;

    /** 是否已发送邮件：0=未发送，1=已发送 */
    @Excel(name = "是否已发送邮件：0=未发送，1=已发送")
    @ApiModelProperty(value = "是否已发送邮件：0=未发送，1=已发送")
    private Integer isSent;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updatedTime;

    /** 删除标志：0=正常，2=删除 */
    @ApiModelProperty(value = "删除标志：0=正常，2=删除")
    private Integer delFlag;

    /**
     * 用于 exists 查询的唯一标识（不持久化到数据库）
     */
    private String uniqueKey;

    // getter and setter
    public String getUniqueKey() {
        return uniqueKey;
    }

    public void setUniqueKey(String uniqueKey) {
        this.uniqueKey = uniqueKey;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setMemoType(String memoType)
    {
        this.memoType = memoType;
    }

    public String getMemoType()
    {
        return memoType;
    }
    public void setRemindTime(Date remindTime)
    {
        this.remindTime = remindTime;
    }

    public Date getRemindTime()
    {
        return remindTime;
    }
    public void setRemindEmail(String remindEmail)
    {
        this.remindEmail = remindEmail;
    }

    public String getRemindEmail()
    {
        return remindEmail;
    }

    public void setRemindEmails(List<String> remindEmails) {
        this.remindEmails = remindEmails;
    }
    public List<String> getRemindEmails() {
        return remindEmails;
    }
    public void setAdvanceDays(Long advanceDays)
    {
        this.advanceDays = advanceDays;
    }

    public Long getAdvanceDays()
    {
        return advanceDays;
    }
    public void setIsSent(Integer isSent)
    {
        this.isSent = isSent;
    }

    public Integer getIsSent()
    {
        return isSent;
    }
    public void setCreatedTime(Date createdTime)
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime()
    {
        return createdTime;
    }
    public void setUpdatedTime(Date updatedTime)
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime()
    {
        return updatedTime;
    }
    public void setDelFlag(Integer delFlag)
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("memoType", getMemoType())
            .append("remindTime", getRemindTime())
            .append("remindEmail", getRemindEmail())
            .append("advanceDays", getAdvanceDays())
            .append("isSent", getIsSent())
            .append("createdTime", getCreatedTime())
            .append("updatedTime", getUpdatedTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
